home *** CD-ROM | disk | FTP | other *** search
- /*********************************************************************
- * GEMTERM ACCESSORY
- * 1992 by Martin F. Gergeleit
- * placed in the public domain
- *
- * GEMTERM COMES WITH ABSOLUTELY NO WARRANTY, NOR WILL I BE LIABLE FOR ANY
- * DAMAGES INCURRED FROM THE USE OF IT. USE ENTIRELY AT YOUR OWN RISK!!!
- *********************************************************************/
-
- #define TRUE 1
- #define FALSE 0
-
- #define WI_KIND (SIZER|MOVER|FULLER|CLOSER|NAME|UPARROW|DNARROW|VSLIDE|LFARROW|RTARROW|HSLIDE)
-
- #define CLOSED 0
- #define UNSHOWN 1
- #define OPEN 2
- #define TO_BE_REOPEND 3
-
- #define GEMTERM_REOPEN 0x4780
- #define TOS_RUN_START 0x4781
-
- #define MIN_WIDTH (2*gl_wbox)
- #define MIN_HEIGHT (3*gl_hbox)
-
- #define MIN_LINES 2
- #define MAX_LINES 50
- #define MIN_COLS 10
- #define MAX_COLS 257
-
- #define MAXARGLEN 80
-
- #define TABSTEP 8
-
- #define NO_PID 0
-
- #define PATHLEN 120
-
- #define WINDOW_NAME_LEN 80
-
- #define MAXCOPYLEN 512
-
- typedef struct text_window {
- int handle;
- int xwork,ywork,hwork,wwork;
- int xold,yold,hold,wold;
- short persistent;
- short status;
- short fulled;
- int vs_s, vs_p, hs_s, hs_p;
-
- short lines;
- short cols;
- char *wtext;
- char *attr;
- short x_cursor;
- short y_cursor;
- short x_start;
- short y_start;
- short esc;
- short x_save;
- short y_save;
- short wrap_line;
- short reverse_video;
- short cursor_enabled;
-
- char *history;
- int hist_size;
- int hist_in;
- int hist_out;
- int lines_written;
- int last_out;
- int last_index;
-
- int font;
- int height;
- int c_width;
- int c_height;
- char window_name[WINDOW_NAME_LEN];
-
- char my_args[MAXARGLEN];
- char cwdir[PATHLEN];
-
- char my_pty_name[40];
- int my_pty;
- int real_pty;
- int pid;
-
- short backslash_conv;
- short keep_on_exit;
- } txt_win;
-
-